<script setup lang="ts">
import HelloWorld from './components/HelloWorld.vue'
import HelloWorld222 from './components/HelloWorld222.vue'
import {reactive, ref} from "vue";
import {FinIntoLibraryPageParam, FormItemProps} from "./ts/form";
const callbackSelected = ref('')
const loading = ref(true) // 列表的加载中
const list = ref<FinIntoLibraryPageParam[]>([]) // 列表的数据
// 列表的总页数
const total = ref(0)
const queryParams = reactive({} as FinIntoLibraryPageParam)
const queryFormRef = ref() // 搜索的表单
const exportLoading = ref(false) // 导出的加载中
function xxxxxx() {
  console.log('=========xxxxxx====' + JSON.stringify(queryParams))

}

const handleQuery = (xxx) => {
 console.log('=========handleQuery====' + xxx)
  callbackSelected.value = '父页面的修改'
}

</script>

<template>
  <div>
    <div @click="xxxxxx">父页面点击11</div>
    <div @click="handleQuery('哈哈哈')">父页面点击handleQuery</div>
    <a href="https://vite.dev" target="_blank">
      <img src="/vite.svg" class="logo" alt="Vite logo" />
    </a>
    <a href="https://vuejs.org/" target="_blank">
      <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
    </a>
  </div>
  <HelloWorld msg="Vite + Vue" />
  <HelloWorld222 msg="Vite + Vue" :callback-selected="callbackSelected"/>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
